package com.jackstraw.jack_base.datasource.mybatis.entity.po;

import com.jackstraw.jack_base.datasource.mybatis.base.entity.po.MyBatisPo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;


import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 用户表  主键
 *
 * @author jack 945514650@qq.com
 * @since version:1.0 generatorDate:2022-05-21 21:29:36
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class UserKeyPo<PO extends UserKeyPo<PO>> extends MyBatisPo<PO> {

    /**
     * 主键
     */
    private String id;

    @Override
    public List<String> idFieldNameS() {
        List<String> fieldNameS = new ArrayList<>();
        fieldNameS.add("id");
        return fieldNameS;
    }

    @Override
    public List<String> idColumnNameS() {
        List<String> idColumnNameS = new ArrayList<>();
        idColumnNameS.add("id");
        return idColumnNameS;
    }

    @Override
    public String tableName() {
        return "t_user";
    }


    @Override
    public Map<String, String> fieldColumnNameMap() {
        Map<String, String> fieldColumnNameMap = new HashMap<>();
        fieldColumnNameMap.put("id", "id");
        fieldColumnNameMap.put("lastName", "last_name");
        fieldColumnNameMap.put("email", "email");
        return fieldColumnNameMap;
    }
}